
    var axisLabel = {
        lineStyle: {
            show: true,
            color: '#053A62'
        },
        interval:0,	//	X轴 连续显示
        textStyle: {
            fontSize: 18,
            color: '#357ACC'
        }
    };
    var axisLabel1 = {
        lineStyle: {
            show: true,
            color: '#053A62'
        },
        textStyle: {
            fontSize: 18,
            color: '#a70a57'
        }
    };
    var axisLine = {
        lineStyle: {
            color: '#053A62',
            width: 0,
        }
    };
    var splitLine = {
        lineStyle: {
            color: '#053A62'
        }
    };
    
    function bar1init(data1,data2,data3) {
        var bar1 = echarts.init(document.getElementById("bar1"));
	    var bar1Option = {
	        color: ['#830a4d','#036393'],
	        title: {
	            text: '资源申请／共享排行',
	            textStyle: {
	                color: '#00aeef',
	                fontWeight: 200,
	                fontSize: 40
	            },
	            x: 65,
	            y: 70
	        },
	        grid: {
	            x: 65,
	            y: 180,
	            x2: 40,
	            y2: 40,
	            borderWidth: 1,
	            borderColor: '#05345A',
	            containLabel: true,
	        },
	        legend: {
	            x: 'center',
	            y: 100,
	            itemWidth: 10,
	            itemHeight: 10,
	            data: [{
	                name: '资源共享',
	                textStyle: {color: '#830a4d',fontSize:16}
	            }, {
	                name: '资源申请',
	                textStyle: {color: '#036393',fontSize:16}
	            }]
	        },
	        tooltip: {
	            trigger: 'axis'
	        },
	        calculable: true,
	        /*
	        dataZoom : {
	            height:10,
	            fillerColor:"rgb(0,139,139)",  //选中范围的填充颜色。 
	            backgroundColor:"rgb(70, 130, 180)",  //组件的背景颜色
	            show : true,
	            realtime : true,
	            start : -10,
	            end : 60,
	            top:"bottom"
	        }, */
	        xAxis: [
	            {
	                type: 'category',
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: {  
	                    interval:0,	//	X轴 连续显示
	                    rotate:40,	//	X轴 斜着显示
	                    textStyle:{
	                    fontSize:18, // 让字体变大
	                    color:'#357ACC'
	                    } 
	                },
	                data: data1
	            }
	        ],
	        yAxis: [
	            {
	                type: 'value',
	                boundaryGap: true,
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: axisLabel
	            }
	        ],
	        series: [
	            {
	                name: '资源共享',
	                type: 'bar',
	                barWidth:10,
	                itemStyle: {
	                    normal: {
	                        color: new echarts.graphic.LinearGradient(
	                            0, 0, 0, 1,
	                            [
	                                {offset: 0, color: '#a70755'},
	                                {offset: 0.5, color: '#760c4b'},
	                                {offset: 1, color: '#550e45'}
	                            ]
	                        )
	                    },
	                },
	                data: data2
	            },
	            {
	                name: '资源申请',
	                type: 'bar',
	                barWidth:10,
	                itemStyle: {
	                    normal: {
	                        color: new echarts.graphic.LinearGradient(
	                            0, 0, 0, 1,
	                            [
	                                {offset: 0, color: 'rgba(2,136,192,.9)'},
	                                {offset: 0.5, color: 'rgba(2,136,192,.7)'},
	                                {offset: 1, color: 'rgba(2,136,192,.5)'}
	                            ]
	                        )
	                    },
	                },
	                 data: data3
	            }
	
	        ]
	    };
	    bar1.setOption(bar1Option);
    }
    
    function bar2init(data1,data2) {
        var bar2 = echarts.init(document.getElementById("bar2"));
	    var bar2Option = {
	        color: ['#00ffff'],
	        title: {
	            text: '库表交换统计',
	            textStyle: {
	                color: '#00ffff',
	                fontWeight: 200,
	                fontSize: 40
	            },
	            x: 'center',
	            y: 70
	        },
	        grid: {
	            x: 35,
	            y: 160,
	            x2: 40,
	            y2: 40,
	            borderWidth: 1,
	            borderColor: '#05345A',
	            containLabel: true,
	        },
	        tooltip: {
	            trigger: 'axis'
	        },
	        calculable: true,
	        xAxis: [
	            {
	                type: 'category',
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: {
	                    rotate:'90',
	                    lineStyle: {
	                        show: true,
	                        color: '#357ACC'
	                    },
	                    textStyle: {
	                        fontSize: 14,
	                        color: '#357ACC'
	                    }
	                },
	                data: data1
	            }
	        ],
	        yAxis: [
	            {
	                type: 'value',
	                boundaryGap: true,
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: axisLabel
	            }
	        ],
	        series: [
	            {
	                name: '数量',
	                type: 'bar',
	                barWidth:10,
	                itemStyle: {
	                    normal: {
	                        color: new echarts.graphic.LinearGradient(
	                            0, 0, 0, 1,
	                            [
	                                {offset: 0, color: 'rgba(0,255,255,1)'},
	                                {offset: 0.5, color: 'rgba(0,255,255,.8)'},
	                                {offset: 1, color: 'rgba(0,255,255,.4)'}
	                            ]
	                        )
	                    },
	                },
	                data: data2
	            }
	        ]
	    };
	    bar2.setOption(bar2Option);
    }
    
    function bar3init(data1,data2) {
	    var bar3 = echarts.init(document.getElementById("bar3"));
	    var bar3Option = {
	        color: ['#00aeef'],
	        title: {
	            text: '文件数量统计',
	            textStyle: {
	                color: '#00aeef',
	                fontWeight: 200,
	                fontSize: 40
	            },
	            x: 'center',
	            y: 'top'
	        },
	        grid: {
	            x: 35,
	            y: 80,
	            x2: 20,
	            y2: 40,
	            borderWidth: 1,
	            borderColor: '#05345A',
	            containLabel: true,
	        },
	        tooltip: {
	            trigger: 'axis'
	        },
	        calculable: true,
	        xAxis: [
	            {
	                type: 'category',
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: {
	                    rotate:'90',
	                    lineStyle: {
	                        show: true,
	                        color: '#053A62'
	                    },
	                    textStyle: {
	                        fontSize: 14,
	                        color: '#357ACC'
	                    }
	                },
	                data: data1
	            }
	        ],
	        yAxis: [
	            {
	                type: 'value',
	                boundaryGap: true,
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: axisLabel
	            }
	        ],
	        series: [
	            {
	                name: '记录数',
	                type: 'bar',
	                barWidth:10,
	                itemStyle: {
	                    normal: {
	                        color: new echarts.graphic.LinearGradient(
	                            0, 0, 0, 1,
	                            [
	                                {offset: 0, color: 'rgba(0,174,239,1)'},
	                                {offset: 0.5, color: 'rgba(0,174,239,.8)'},
	                                {offset: 1, color: 'rgba(0,174,239,.4)'}
	                            ]
	                        )
	                    },
	                },
	                data: data2
	            }
	
	        ]
	    };
	    bar3.setOption(bar3Option);
    }
    
    function bar4init(data1,data2) {
        var bar4 = echarts.init(document.getElementById("bar4"));
	    var bar4Option = {
	        color: ['#00aeef'],
	        title: {
	            text: '接口调用统计',
	            textStyle: {
	                color: '#ff0066',
	                fontWeight: 200,
	                fontSize: 40
	            },
	            x: 'center',
	            y: 'top'
	        },
	        grid: {
	            x: 35,
	            y: 80,
	            x2: 40,
	            y2: 40,
	            borderWidth: 1,
	            borderColor: '#05345A',
	            containLabel: true,
	        },
	        tooltip: {
	            trigger: 'axis'
	        },
	        calculable: true,
	        xAxis: [
	            {
	                type: 'category',
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: {
	                    rotate:'90',
	                    lineStyle: {
	                        show: true,
	                        color: '#053A62'
	                    },
	                    textStyle: {
	                        fontSize: 14,
	                        color: '#a70a57'
	                    }
	                },
	                data: data1
	            }
	        ],
	        yAxis: [
	            {
	                type: 'value',
	                boundaryGap: true,
	                axisTick: {length: 0},
	                splitLine: splitLine,
	                axisLine: axisLine,
	                axisLabel: axisLabel1
	            }
	        ],
	        series: [
	            {
	                name: '记录数',
	                type: 'bar',
	                barWidth:10,
	                itemStyle: {
	                    normal: {
	                        color: new echarts.graphic.LinearGradient(
	                            0, 0, 0, 1,
	                            [
	                                {offset: 0, color: 'rgba(167,10,87,1)'},
	                                {offset: 0.5, color: 'rgba(167,10,87,.8)'},
	                                {offset: 1, color: 'rgba(167,10,87,.4)'}
	                            ]
	                        )
	                    },
	                },
	                data: data2
	            }
	
	        ]
	    };
	    bar4.setOption(bar4Option);
    }
    
    

 
